<template>
	<view>
		<view style="font-size: 50px;text-align: center;margin-top: 100px;font-weight: bold;">首页</view>
		<button class="cu-btn block bg-blue margin-tb-sm lg" @click="test" type="">查询测试</button>
		<button class="cu-btn block bg-blue margin-tb-sm lg" @click="wxSend" type="">发送</button>
	</view>
</template>
<script>
	import { login,test,wxSend } from "@/api/login";
	
import {mapGetters,mapActions} from 'vuex'
		
 export default {
		data() {
			return {
				loginForm:{
					username: "admin",
					password: "admin123",
					code: "WeChat",
				},
		      }
		},
		
		methods: {
			
			test: function() {
				test().then(response => {
					console.log(response)
					
				});
			},
			wxSend: function() {
				let param={
					openId:'oImQJ6waX7LZizKVoOcGKDAt4FBM',
					name:'song'
				}
				wxSend(param).then(response => {
					console.log(response)
					
				});
			},
		}
	}
</script>

<style>
  .bg{
	  width: 100%;
	  height: 50px;
	  font-size: 80rpx;
	  margin-top: 100px;
	  text-align: center;
	  color: #303133;
  }
</style>
